package com.wish.g04.financing.service.impl;

import com.wish.g04.financing.dto.ReceiptPlanDTO;
import com.wish.g04.financing.mapper.ReceiptPlanMapper;
import com.wish.g04.financing.service.ReceiptPlanService;
import com.wish.g04.financing.vo.ReceiptPlanVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author tianyandong
 */
@Service
public class ReceiptPlanServiceImpl implements ReceiptPlanService {

    @Autowired
    private ReceiptPlanMapper receiptPlanMapper;


    /**
     * 查询所有收款计划
     * @param receiptPlanDTO
     * @return
     */
    @Override
    public List<ReceiptPlanVO> getReceiptPlanList(ReceiptPlanDTO receiptPlanDTO) {
        return receiptPlanMapper.getReceiptPlanList(receiptPlanDTO);
    }

    /**
     * 查询所有收款计划
     * @param receiptPlanDTO
     * @return
     */
    @Override
    public ReceiptPlanVO getReceiptPlanSum(ReceiptPlanDTO receiptPlanDTO) {
        return receiptPlanMapper.getReceiptPlanSum(receiptPlanDTO);
    }
}
